/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 */
'use strict';
import { ActionConst } from 'react-native-router-flux';

const initialState = {
  scene: {},
};

export default function reducer(state = initialState, action = {}) {
    switch (action.type) {
        case ActionConst.FOCUS:
            return Object.assign({}, state, {
                scene:action.scene
            });
        default:
            return state;
    }
}